<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <header>

    <div class="container">
      <nav>
        <RouterLink to="/">首页</RouterLink>
        <RouterLink to="/facedb">人脸数据库</RouterLink>
      </nav>
    </div>
  </header>

  <RouterView />

</template>

<style>
body {
  margin: 0;
  padding: 0;
}
</style>
<style scoped lang="less">
RouterView{
  display: none;
}
header {
  height: 48px;
  background-color: #499ef3;
  line-height: 48px;

  .container {
    width: 100%;
    margin: 0 auto;
  }

  .container a {
    color: white;
    text-decoration: none;
    padding: 0 20px;
    text-align: center;
  }
}
</style>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 0px;
  padding-top: 0px;
}
</style>
